package com.wk.dao;

import com.wk.vo.Book;
import com.wk.vo.Chapters;
import com.wk.vo.Comment;
import com.wk.vo.Pic;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReadDao {
    List<Chapters> getAllChapters(@Param("bookId") int bookId);

    Comment getLastLocation(@Param("bookId") int bookId, @Param("userId") int userId);

    Chapters getChapterByChapterId(@Param("chapterId") Integer chapterId);

    void addLog(@Param("bookId") int bookId, @Param("userId") int userId, @Param("lastTime") String lastTime, @Param("chapterId") int chapterId);

    void updateLog(@Param("bookId") int bookId, @Param("userId") int userId, @Param("lastTime") String lastTime, @Param("chapterId") int chapterId);

    List<Book> getAllBooks();

}
